﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using BluSteamClient.ViewModel;

namespace BluSteamClient.View
{
    /// <summary>
    /// Interaction logic for LoginWindowView.xaml
    /// </summary>
    public partial class LoginWindow : Window
    {
        private MainWindow _mainWindow;

        public LoginWindow()
        {
            InitializeComponent();
            _mainWindow = new MainWindow();

            // work around to get the contructor in the ConnectedUsersViewModel to run
            _mainWindow.Show();
            _mainWindow.Hide();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            _mainWindow.Show();
            this.Close();
        }
    }
}
